package net.wofly.cashier.preorder.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 * 预定就餐
 * <ul>
 * 	<li>在网上提前下单并付款，在约定时间来就餐</li>
 * 	<li>在规定的时间内不就餐的不退餐费</li>
 * 	<li>是否可以取消定单？</li>
 * 	<li></li>
 * </ul>
 * @author lign
 * @version 1.0
 * @created 17-十月-2017 23:09:32
 */
@Data
@Entity
@Table(name = "cashier_preorder_bookmeal")
@ApiModel(description = "预购就餐")
public class BookMeal {

	@Id
	@ApiModelProperty(value = "预购就餐ID")
	private String bookMealID;
	/**
	 * 订单总金额
	 */
	@ApiModelProperty(value = "订单总金额")
	private Integer amount;

	/**
	 * 按日每天自增生成
	 * 长度：20
	 */
	@ApiModelProperty(value = "预购就餐编号")
	private Integer bookMealNo;
	/**
	 * 预定就餐时间
	 */
	@ApiModelProperty(value = "预定就餐时间")
	private Long bookMealTime;
	/**
	 * 预定时间
	 */
	@ApiModelProperty(value = "预定时间")
	private Long bookTime;
	@ApiModelProperty(value = "客户ID")
	private String customerUserID;
	/**
	 * 就餐时间
	 */
	@ApiModelProperty(value = "就餐时间")
	private Long mealTime;
	/**
	 * 预定人手机
	 * 长度：20
	 */
	@ApiModelProperty(value = "预定人手机")
	private String mobile;
	@ApiModelProperty(value = "修改时间")
	private Long modifyDate;
	/**
	 * 预定人姓名
	 * 长度：20
	 */
	@ApiModelProperty(value = "预定人姓名")
	private String name;
	/**
	 * 付款标识
	 * 1为己付款
	 * 0为未付款
	 */
	@ApiModelProperty(value = "付款标识")
	private Integer payFlag = 0;
	/**
	 * 状态
	 * 来源于：BookMealStatus
	 */
	@ApiModelProperty(value = "状态")
	private Integer status;
	@ApiModelProperty(value = "餐桌ID")
	private String tableID;

	@Transient
	public List<BookMealContent> bookMealContentList;
//	public PayInfo m_PayInfo;

	public BookMeal(){

	}

}